package com.ruoyi.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单分配对象 order_allocation
 *
 * @author testlove
 * @date 2021-07-08
 */
public class OrderAllocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    private String area;
    private String greenhouse;
    public  String cropType;

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getGreenhouse() {
        return greenhouse;
    }

    public void setGreenhouse(String greenhouse) {
        this.greenhouse = greenhouse;
    }

    public String getCropType() {
        return cropType;
    }

    public void setCropType(String cropType) {
        this.cropType = cropType;
    }

    /** 编号 主码 */
    private Long orderAllocationId;

    /** 片区编号 外码 */
    @Excel(name = "片区编号 外码")
    private Long areaId;

    /** 大棚编号 外码 */
    @Excel(name = "大棚编号 外码")
    private Long greenhouseId;

    /** 订单编号 外码 */
    @Excel(name = "订单编号 外码")
    private String orderId;

    /** 蔬菜类型编号 外码 */
    @Excel(name = "蔬菜类型编号 外码")
    private Long cropTypeId;

    /** 苗类型 嫁接苗|实生苗 */
    @Excel(name = "苗类型 嫁接苗|实生苗")
    private String seedlingType;

    /** 砧木品种 实生苗不需要填写砧木 */
    @Excel(name = "砧木品种 实生苗不需要填写砧木")
    private String stockBreed;

    /** 接穗品种 */
    @Excel(name = "接穗品种")
    private String scionBreed;

    /** 计划数量 */
    @Excel(name = "计划数量")
    private Long amount;

    /** 所占面积 */
    @Excel(name = "所占面积")
    private Long acreage;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    public void setOrderAllocationId(Long orderAllocationId)
    {
        this.orderAllocationId = orderAllocationId;
    }

    public Long getOrderAllocationId()
    {
        return orderAllocationId;
    }
    public void setAreaId(Long areaId)
    {
        this.areaId = areaId;
    }

    public Long getAreaId()
    {
        return areaId;
    }
    public void setGreenhouseId(Long greenhouseId)
    {
        this.greenhouseId = greenhouseId;
    }

    public Long getGreenhouseId()
    {
        return greenhouseId;
    }
    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId()
    {
        return orderId;
    }
    public void setCropTypeId(Long cropTypeId)
    {
        this.cropTypeId = cropTypeId;
    }

    public Long getCropTypeId()
    {
        return cropTypeId;
    }
    public void setSeedlingType(String seedlingType)
    {
        this.seedlingType = seedlingType;
    }

    public String getSeedlingType()
    {
        return seedlingType;
    }
    public void setStockBreed(String stockBreed)
    {
        this.stockBreed = stockBreed;
    }

    public String getStockBreed()
    {
        return stockBreed;
    }
    public void setScionBreed(String scionBreed)
    {
        this.scionBreed = scionBreed;
    }

    public String getScionBreed()
    {
        return scionBreed;
    }
    public void setAmount(Long amount)
    {
        this.amount = amount;
    }

    public Long getAmount()
    {
        return amount;
    }
    public void setAcreage(Long acreage)
    {
        this.acreage = acreage;
    }

    public Long getAcreage()
    {
        return acreage;
    }
    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderAllocationId", getOrderAllocationId())
            .append("areaId", getAreaId())
            .append("greenhouseId", getGreenhouseId())
            .append("orderId", getOrderId())
            .append("cropTypeId", getCropTypeId())
            .append("seedlingType", getSeedlingType())
            .append("stockBreed", getStockBreed())
            .append("scionBreed", getScionBreed())
            .append("amount", getAmount())
            .append("acreage", getAcreage())
            .append("unit", getUnit())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public OrderAllocation(OrderAllocation orderAllocation) {
        this.orderAllocationId = orderAllocation.getOrderAllocationId();
        this.areaId = orderAllocation.getAreaId();
        this.greenhouseId = orderAllocation.getGreenhouseId();
        this.orderId = orderAllocation.getOrderId();
        this.cropTypeId = orderAllocation.getCropTypeId();
        this.seedlingType = orderAllocation.getSeedlingType();
        this.stockBreed = orderAllocation.getStockBreed();
        this.scionBreed = orderAllocation.getScionBreed();
        this.amount = orderAllocation.getAmount();
        this.acreage = orderAllocation.getAcreage();
        this.unit = orderAllocation.getUnit();
    }
    public OrderAllocation(){}
}
